package com.cheyun.netsalev3.view

import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProviders
import com.cheyun.netsalev3.R
import com.cheyun.netsalev3.databinding.ActivityStockDetailsBinding
import com.cheyun.netsalev3.utils.BaseActivity
import com.cheyun.netsalev3.utils.InjectorUtils
import com.cheyun.netsalev3.viewmodel.StockDetailsActivityViewModel

class StockDetailsActivity : BaseActivity<ActivityStockDetailsBinding>() {
    override fun initContentView(): Int {
        return R.layout.activity_stock_details
    }

    override fun initViewModel(): ViewModel? {
        var id = intent.getIntExtra("id", 0)
        var factory = InjectorUtils.getStockDetailsViewModelFactory(id)
        return ViewModelProviders.of(this, factory).get(StockDetailsActivityViewModel::class.java)
    }

    override fun initView() {
    }

    override fun initData() {
    }


}
